package chapter5.v2;

import basic.lessons.TextIO;

public class BJTest  extends BlackjackHand{
	
	 public static void main(String[] args) {

		int inputValue = 1;
		while (inputValue != 0) {
			TextIO.putln("This will display the Hand value");
			TextIO.putln("Type '0' to quit program");
			inputValue = TextIO.getlnInt();

			Deck d = new Deck(false);
			d.shuffle();
			Hand h = new Hand();
			BlackjackHand b = new BlackjackHand();
			Card c = new Card();
			
			int cardsToGet = (int)(Math.random()*5+2);
			int cardValues = 0;
			for (int i = 1; i<= cardsToGet; i++){
				c=d.dealCard();
				b.addCard(c);
//			    System.out.println("Card " + c + " was added to the Hand ");
			}
	//		b.displayHand();
		//	b.displayBlackjackValue();
			

		}

	}
}
